package com.int_tech.car.dao;

import com.int_tech.car.entity.Car;
import com.int_tech.car.entity.CarInInfo;
import com.int_tech.car.entity.CarInfoData;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * Created by liubch on 2017/11/20.
 */
public interface CarInfoDao extends JpaRepository<CarInInfo,Integer> {
    List<CarInInfo> findByStationId(int stationId);

    List<CarInInfo> findByCarNumberIn(List<String> carNumbers);

    CarInInfo findByCarNumberAndCreateTime(String carNumber, Date createTime);

    CarInInfo findByMessionNumber(String messionNumber);

    CarInInfo findByMessionNumberAndStatus(String messionNumber, int i);

    List<CarInInfo> findByCarNumberIsNull();


//    CarInfoData findByTimeDateAndCarNumber(String timeString, String carNumber);

//    CarInfoData findByUnKey(String unKey);
}
